#! /bin/bash
#安装系统依赖项
echo "开始配置云崽运行环境-请耐心等待,基于环境编写，只适用于Debian11"
mv /etc/apt/sources.list /etc/apt/sources.list.bak
#配置清华源
echo "deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free" >> /etc/apt/sources.list
echo "deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free" >> /etc/apt/sources.list
apt update
sudo apt upgrade -y
#云崽运行环境安装
# sudo apt install python3 -y
# sudo apt install pip -y
sudo apt install git -y
sudo apt install ffmpeg -y
sudo apt-get install libfdk-aac-dev
sudo apt-get -f install chromium-browser -y 
sudo apt-get install -y libgbm-dev
sudo apt install  vim
#安装node.js
apt  update
apt install curl -y
curl -sL https://deb.nodesource.com/setup_19.x |  bash -
apt update
apt -y install nodejs
#字体
apt install -y --force-yes --no-install-recommends fonts-wqy-microhei
#依赖项
apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

#vim乱码解决
echo "set fileencodings=utf-8,gb2312,gbk,gb18030"  >> /usr/share/vim/vimrc
echo "set termencoding=utf-8" >> /usr/share/vim/vimrc
echo "set fileformats=unix" >> /usr/share/vim/vimrc
echo "set encoding=prc"  >> /usr/share/vim/vimrc






 